<%@ attribute name="id" required="true" %>

<script type="text/javascript">
	$(function() {
		$(".${id}").datepicker({dateFormat: 'dd/mm/yy'});
		$("#${id}").datepicker({dateFormat: 'dd/mm/yy'});
	});
</script>
<input type="text" class="${id}" name="${id}" />